from Select_By_Mysql import get_mysql_data
from Read_conifg import ReadConfig

class Get_Info():
    def Get_Drug_id(self):
        Drug_id=get_mysql_data("select id from khd_drug_user where name='"+ReadConfig().get_order_info("drug_name")+"'")
        return Drug_id

    def Get_login_id(self):
        uid=get_mysql_data("select id from khd_login where phone='"+ReadConfig().get_account("user_khd")+"'")
        return uid

    def Get_pharmacy_id(self):
        pharmacy_id=get_mysql_data("select id from dxh_pharmacy where name='"+ReadConfig().get_order_info("pharmacy_name")+"'")
        return pharmacy_id

    def Get_pharmacist_id(self):
        pharmacist_id=get_mysql_data("select id from dxh_pharmacist where name='"+ReadConfig().get_order_info("pharmacist_name")+"'")
        return pharmacist_id

Get_Info().Get_login_id()